package com.lovegu.object.middle;

/**
 * @author 老顾
 * @title: FieldMethodTest
 * @projectName java-restudy
 * @email: 1437594522@qq.com
 * @date 2022/9/21 9:10
 */
public class FieldMethodTest {
    public static void main(String[] args) {
        Sub s = new Sub();
        System.out.println(s.count);
        s.display();
        Base b = s;
        System.out.println(b == s);
        System.out.println(b.count);
        b.display();
    }
}
